<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圆形加载动画</title>
    <style>
      .loader-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: #f5f5f5;
      }

      .progress-container {
        width: 192px;
        height: 192px;
        position: relative;
      }

      .progress-bg {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 6px solid #f0f0f0;
        box-sizing: border-box;
      }

      .progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        clip: rect(0, 200px, 200px, 0);
      }

      .progress-bar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 24px solid #3498db;
        border-top-color: #3498db;
        border-right-color: #3498db;
        box-sizing: border-box;
        animation: progress 5s linear forwards;
        transform: rotate(-45deg);
      }

      @keyframes progress {
        0% {
          transform: rotate(0deg);
          clip-path: inset(0 100% 0 0);
        }
        100% {
          transform: rotate(360deg);
          clip-path: inset(0 0 0 0);
        }
      }
    </style>
  </head>
  <body>
    <div class="loader-container">
      <div class="progress-container">
        <div class="progress-bg"></div>
        <div class="progress-fill">
          <div class="progress-bar"></div>
        </div>
      </div>
    </div>
  </body>
</html>
